const columns = [
    { prop: 'name', label: '素材名称', width: 300 },
    { prop: 'classFullPathJson', label: '素材分类', width: 300 },
    { prop: 'comment', label: '介绍说明', width: 300 },
    { prop: 'creatorName', label: '创建者' },
    {
        label: '操作',
        width: 300,
        operations: [
            {
                prop: 'edit',
                label: '编辑'
            },
            {
                prop: 'delete',
                label: '删除'
            }
        ]
    }
]

const formItems = [
    {
        label: '素材分类',
        prop: 'classIds',
        name: 'cascader',
        props: {
            value: 'id',
            label: 'name',
            children: 'subClasses'
        },
        validation: true
    },
    {
        label: '素材名称',
        prop: 'name',
        name: 'input',
        validation: true
    },
    {
        label: '介绍说明',
        prop: 'comment',
        name: 'input',
        type: 'textarea'
    },
    {
        label: '素材文件名',
        name: 'media-upload',
        validation: false
    }
]

export default {
    columns,
    formItems
}
